package com.boy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.boy.entity.modle.AccountType;
import com.boy.tool.annotate.Assignment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author whd
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_account")
@ApiModel(value = "Account对象", description = "")
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;

    @Assignment
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    //@TableField(fill = FieldFill.INSERT)
    private String id;
    @Assignment
    private String nick;
    @Assignment
    private String phone;

    private String password;

    private String openid;

    private String appid;

    private String unionid;
    @Assignment
    private String mail;
    @Assignment
    private String avatar;

    private String roles;
    @Assignment
    private AccountType type;

    private Long balance;
    @TableField(fill = FieldFill.INSERT)
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;
    @TableLogic(value = "0", delval = "1")
    private Integer isDelete;


}
